import { createStore, combineReducers, applyMiddleware } from "redux";
import thunk from "redux-thunk"
import newOrderReducer from "../reducers/newOrderReducer";
import orderInfoReducer from "../reducers/orderInfoReducer";
import partaInfoReducer from '../reducers/partaInfoReducer'
import partbInfoReducer from "../reducers/partbInfoReducer";
import productcolorInfoReducer from "../reducers/productcolorInfoReducer";
import productdirectionInfoReducer from "../reducers/productdirectionInfoReducer";
import productlightInfoReducer from "../reducers/productlightInfoReducer";
import productnameInfoReducer from "../reducers/productnameInfoReducer";

let store = combineReducers({
    partaInfo: partaInfoReducer,
    partbInfo: partbInfoReducer,
    productnameInfo: productnameInfoReducer,
    productcolorInfo: productcolorInfoReducer,
    productdirectionInfo: productdirectionInfoReducer,
    productlightInfo: productlightInfoReducer,
    orderInfo: orderInfoReducer,
    neworder: newOrderReducer

})
export default createStore(store, applyMiddleware(thunk));